package xyz.cfg;

import java.io.InputStreamReader;
import java.io.Reader;
import java.util.Map;


public class CfgJRunner {
	public static void main(String[] args) throws Exception {
		Reader reader = new InputStreamReader(
				CfgJRunner.class.getResourceAsStream("/my.conf"), "UTF-8");
		Cfg conf = CfgFactory.parseReader(reader);
		Map<String, String> map = conf.jentry();

		for (String key : map.keySet()) {
			String value = conf.getString(key);
			System.out.println("key:" + key + "--value:" + value);
		}
	}
}
